package com.smart.five.ioc.bean.extend;

import com.smart.five.ioc.bean.extend.Car;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author junrui.wang
 * @create 2018/6/6
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("com/smart/five/ioc/bean/extend/beans.xml");
        Car car1 = (Car) ac.getBean("car1");
        car1.introduce();
        Car car2 = (Car) ac.getBean("car2");
        car2.introduce();

    }
}
